package com.example.pojo.entity;


import lombok.Data;

import java.io.Serializable;

import java.util.Date;


/**
 * APP用户信息表
 *
 * @TableName ap_user
 */
@Data
public class ApUser implements Serializable {

    /**
     * 主键
     */

    private int id;
    /**
     * 密码、通信等加密盐
     */

    private String salt;
    /**
     * 用户名
     */

    private String name;
    /**
     * 密码,md5加密
     */

    private String password;
    /**
     * 手机号
     */

    private String phone;
    /**
     * 头像
     */

    private String image;
    /**
     * 0 男
     * 1 女
     * 2 未知
     */

    private Integer sex;
    /**
     * 0 未
     * 1 是
     */

    private Integer isCertification;
    /**
     * 是否身份认证
     */
    private Integer isIdentityAuthentication;
    /**
     * 0正常
     * 1锁定
     */

    private Integer status;
    /**
     * 0 普通用户
     * 1 自媒体人
     * 2 大V
     */

    private Integer flag;
    /**
     * 注册时间
     */
    private Date createdTime;

    public void setId(int id) {
        this.id = id;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public void setIsCertification(Integer isCertification) {
        this.isCertification = isCertification;
    }

    public void setIsIdentityAuthentication(Integer isIdentityAuthentication) {
        this.isIdentityAuthentication = isIdentityAuthentication;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
}
